bitkeeper revision 1.1159.17.13 (411b0b36peqhPJFT111OsxoPfmLexQ)
authoriap10@labyrinth.cl.cam.ac.uk <iap10@labyrinth.cl.cam.ac.uk>
Thu, 12 Aug 2004 06:16:22 +0000 (06:16 +0000)
committeriap10@labyrinth.cl.cam.ac.uk <iap10@labyrinth.cl.cam.ac.uk>
Thu, 12 Aug 2004 06:16:22 +0000 (06:16 +0000)
updates to xen-clone script : build linux 2.6

tools/misc/xen-clone

index cfcd3e4e06749484c7f6fd7c0babc3da83a72818..392bf8c6feaf643b317bcafb6692ca9753506fa8 100755 (executable)
@@ -17,7 +17,7 @@ UCCL)
 *)
        BK_REP=${1:-bk://xen.bkbits.net/xeno-1.0.bk}
        # BK_REP=${1:-ssh://xen@xen.bkbits.net/xeno-1.0.bk}
-       LINUX_DIR=${3:-..}
+       LINUX_DIR=${3:-.:..}
 ;;
 esac
 
@@ -65,12 +65,7 @@ if [ -d ${DEST_BK_REP}/linux-2.4.*-xen-sparse ]
 then
  # this is a new style Xen repository so building is dead easy
 
- LINUX_VER=`( /bin/ls -ld ${DEST_BK_REP}/*linux-2.4.*-xen-sparse ) 2>/dev/null | sed -e 's!^.*linux-\(.\+\)-xen-sparse!\1!'`
-
- if [ -e ${LINUX_DIR}/linux-${LINUX_VER}.tar.gz ] 
- then
-  export LINUX_SRC=${LINUX_DIR}/linux-${LINUX_VER}.tar.gz
- fi
+ export LINUX_SRC_PATH=${LINUX_DIR}
 
  cd ${DEST_BK_REP} 
  ln -sf ../install install